package com.wecan.base.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author liuzhihao
 * @Date 2022.03.15
 * @Version ${version}
 * @Description ${description}
 */
public enum OrderRefundStatus {

    WAIT_PASSIVE_USER_CONFIRM(0, "待作者确认"),
    WAIT_PLATFORM_CONFIRM(1, "待平台确认"),
    PASSIVE_PLATFORM_NO_PASS(2, "平台未通过"),
    PASS(3, "申请已通过");

    @EnumValue
    @JsonValue
    private final int code;

    private final String desc;

    OrderRefundStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }
}
